package masterjava.common.client.gxt.charts;

import masterjava.common.client.gxt.base.tabs.BaseNamedTabs;

/**
 * User: gkislin
 * Date: 7/7/11
 */
abstract public class ChartTabs extends BaseNamedTabs<ChartType, GxtChart> {

    public ChartTabs(ChartType tabItem) {
        super(tabItem);
    }

    protected ChartTabs(ChartType[] tabItems) {
        super(tabItems);
    }

    public ChartTabs(Iterable<ChartType> tabIterable) {
        super(tabIterable);
    }

    @Override
    protected GxtChart createTabComponent(ChartType type) {
        return new GxtChart(createChartModel(type));
    }

    protected abstract IChartModel createChartModel(ChartType type);
}
